package com.kehutong.payfees.entity;

import com.kehutong.common.enums.ResidentType;
import com.kehutong.payfees.enums.CustomerType;
import org.coraframework.bean.valid.CheckField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import com.kehutong.payfees.enums.CallRunState;

/**
 * Author:  peter
 * Date:    2020/7/25
 * Function:
 */
@Table(value = "t_charge_call_target", comment="催缴任务发送对象", multi = true)
public class ChargeCallTarget extends Entity {

    private static final long serialVersionUID = 6983512832989083337L;

    protected ChargeCallTarget(String id) {
        super(id);
        this.mpCallState = CallRunState.NONE;
        this.workCallState = CallRunState.NONE;
    }

    @Column(comment = "所属催缴任务编号")
    private String taskNo;

    @Column(comment = "住户类型")
    private CustomerType userType;

    @Column(comment = "住户类型")
    private ResidentType residentType;

    @Column(comment = "住户编号")
    private String residentNo;

    @Column(comment = "t_member_contact表Id")
    private String contactId;
    @Column(comment = "t_member_webchat表Id")
    private String webchatId;
    @Column(length = 255, comment = "头像")
    private String avatar;
    @Column(length = 64, comment = "昵称")
    private String nickName;
    @Column(comment = "客户手机号")
    private String mobile;

    @Column(comment = "公众号通知状态")
    private CallRunState mpCallState;
    @Column(length = 255, comment = "公众号通知异常原因")
    private String mpCallRemark;

    @Column(comment = "企业微信通知状态")
    private CallRunState workCallState;
    @Column(length = 255, comment = "企业微信通知异常原因")
    private String workCallRemark;

    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    public CustomerType getUserType() {
        return userType;
    }

    public void setUserType(CustomerType userType) {
        this.userType = userType;
    }

    public String getContactId() {
        return contactId;
    }

    public void setContactId(String contactId) {
        this.contactId = contactId;
    }
    
    public String getWebchatId() {
		return webchatId;
	}

	public void setWebchatId(String webchatId) {
		this.webchatId = webchatId;
	}

	public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public CallRunState getMpCallState() {
        return mpCallState;
    }

    public void setMpCallState(CallRunState mpCallState) {
        this.mpCallState = mpCallState;
    }

    public String getMpCallRemark() {
        return mpCallRemark;
    }

    public void setMpCallRemark(String mpCallRemark) {
        this.mpCallRemark = mpCallRemark;
    }

    public CallRunState getWorkCallState() {
        return workCallState;
    }

    public void setWorkCallState(CallRunState workCallState) {
        this.workCallState = workCallState;
    }

    public String getWorkCallRemark() {
        return workCallRemark;
    }

    public void setWorkCallRemark(String workCallRemark) {
        this.workCallRemark = workCallRemark;
    }

    public ResidentType getResidentType() {
        return residentType;
    }

    public void setResidentType(ResidentType residentType) {
        this.residentType = residentType;
    }

    public String getResidentNo() {
        return residentNo;
    }

    public void setResidentNo(String residentNo) {
        this.residentNo = residentNo;
    }
}
